<%--
  Created by IntelliJ IDEA.
  User: 10171225
  Date: 2016/6/20
  Time: 11:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
    <base href="<%=basePath%>"/>
    <title>编辑管理</title>
    <link rel="stylesheet" href="static/themes/bootstrap/easyui.css">
    <link rel="stylesheet" href="static/css/base.css">
    <script src="static/javascript/jquery-1.11.3.min.js"></script>
    <script src="static/javascript/jquery.easyui.min.js"></script>
    <script src="static/javascript/utils.js"></script>
    <script src="static/javascript/base.js"></script>

    <link rel="stylesheet" href="plugins/bootstrap-3.3.5-dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="plugins/bootstrap-3.3.5-dist/css/bootstrap-theme.min.css">
    <script src="plugins/bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            var mainId = "#editMain";
            var mainUrlPath = "admin/editManage";
            function toggleItem(item) {
                $(".list-group li").each(function () {
                    $(this).removeClass("active");
                });
                item.addClass("active");
            }
            function loadMainContent(url) {
                obj=$.ajax({url:url,async:false});
                $(mainId).html(obj.responseText);
            }
            $("#editNoticeManage").click(function () {
                toggleItem($(this));
                loadMainContent(mainUrlPath + "/editNoticeManage");
            });
            $("#editChartDesManage").click(function () {
                toggleItem($(this));
                $(mainId).load("views/admin/editManage/editChartDesManage.jsp");
            });
            $("#editContactUs").click(function () {
                toggleItem($(this));
                loadMainContent(mainUrlPath + "/editPage?pageType=CONTACT_US");
            });
            $("#editWebsiteStatement").click(function () {
                toggleItem($(this));
                loadMainContent(mainUrlPath + "/editPage?pageType=WEBSITE_STATEMENT");
            });

            $(".list-group :first-child").click();
        });
    </script>
</head>
<body>
<div class="row paddingTop">
    <div class="col-xs-3 col-sm-3 col-md-3">
        <ul class="list-group">
            <li class="list-group-item" id="editNoticeManage">编辑公告</li>
            <li class="list-group-item" id="editChartDesManage">编辑图表说明</li>
            <li class="list-group-item" id="editContactUs">编辑联系我们</li>
            <li class="list-group-item" id="editWebsiteStatement">编辑网站声明</li>
        </ul>
    </div>
    <div class="col-xs-9 col-sm-9 col-md-9">
        <div id="editMain" class="paddingLeft"></div>
    </div>
</div>
</body>
</html>